<?php
/**
 * Created by PhpStorm.
 */

use Biz\service\activity\Coupon as sCoupon;
use Doraemon\tools\ActionLog;

/**
 * @deprecated
 */
class MineListAction extends ActionPlugin
{
    const USER_LEVEL = self::LEVEL_REGISTER;
    const ACTION_TYPE = "coupon";

    public function main()
    {
        $cateId = $this->getRequest()->getQuery('cate_id', 0);


        $result = sCoupon::getMineList($this->uid, $cateId);

        ActionLog::log($this->uid, ['cate_id' => $cateId], ActionLog::BIZ_MINE_LIST);

        $this->setSuccess(['list' => $result]);
    }

}
